package com.example.abc.websocket.msg;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by Peter on 2018/5/6.
 */
public class LogoutMsg implements Serializable{
    private String from;
    private String to;
    private String logoutReason;
    private Date createDate;

    public LogoutMsg() {
    }

    public LogoutMsg(String from, String to, String logoutReason) {
        this.from = from;
        this.logoutReason = logoutReason;
        this.to = to;
        this.createDate = new Date();
    }

    public String getLogoutReason() {
        return logoutReason;
    }

    public void setLogoutReason(String logoutReason) {
        this.logoutReason = logoutReason;
    }

    public String getFrom() {
        return from;
    }

    public void setFrom(String from) {
        this.from = from;
    }

    public String getTo() {
        return to;
    }

    public void setTo(String to) {
        this.to = to;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }
}
